import React, { Component } from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components/native'
import { Actions } from 'react-native-router-flux'
import SplashScreen from 'react-native-splash-screen'

const StyledView = styled.View`
  background-color: papayawhip;
  flex: 1;
  justify-content: center;
  align-items: center
`
const StyledText = styled.Text`
  color: palevioletred;
  font-size: 20
`

const Button = styled.TouchableOpacity`
  color: palevioletred
`

export default class LaunchView extends Component {

  constructor(props) {
    super(props)
  }

  componentDidMount() {
    SplashScreen.hide()
    setTimeout(() => {
      this.jumpLogin()
    }, 3000)
  }

  jumpLogin = () => {
    Actions.login({})
  }

  render() {
    console.log('Actions.currentScene', Actions.currentScene)
    return (
        <StyledView >
          <StyledText>Launch Page ==</StyledText>
        </StyledView>
    )
  }
}

